package cn.tedu.system.service.impl;

import cn.tedu.system.mapper.HandlersMapper;
import cn.tedu.system.mapper.SettlementMapper;
import cn.tedu.system.pojo.param.SettlementAddParam;
import cn.tedu.system.pojo.po.HandlerPO;
import cn.tedu.system.pojo.po.SettlementPO;
import cn.tedu.system.service.SettlementService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ISettlementService implements SettlementService {

    @Autowired
    SettlementMapper mapper;
    @Override
    public Integer addNew(SettlementAddParam param) {
        SettlementPO settlementPO=new SettlementPO();
        BeanUtils.copyProperties(param,settlementPO);
        int insert = mapper.insert(settlementPO);
        return insert;

    }
}
